package com.huakang.entity;

import java.io.Serializable;

/**
 * nurse
 * @author 
 */
public class Nurse implements Serializable {
    private Integer nid;

    private String nname;

    private String nsex;

    private String nphone;

    private String nidentify;

    private Integer deid;

    private Integer kid;

    private static final long serialVersionUID = 1L;

    public Integer getNid() {
        return nid;
    }

    public void setNid(Integer nid) {
        this.nid = nid;
    }

    public String getNname() {
        return nname;
    }

    public void setNname(String nname) {
        this.nname = nname;
    }

    public String getNsex() {
        return nsex;
    }

    public void setNsex(String nsex) {
        this.nsex = nsex;
    }

    public String getNphone() {
        return nphone;
    }

    public void setNphone(String nphone) {
        this.nphone = nphone;
    }

    public String getNidentify() {
        return nidentify;
    }

    public void setNidentify(String nidentify) {
        this.nidentify = nidentify;
    }

    public Integer getDeid() {
        return deid;
    }

    public void setDeid(Integer deid) {
        this.deid = deid;
    }

    public Integer getKid() {
        return kid;
    }

    public void setKid(Integer kid) {
        this.kid = kid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Nurse other = (Nurse) that;
        return (this.getNid() == null ? other.getNid() == null : this.getNid().equals(other.getNid()))
            && (this.getNname() == null ? other.getNname() == null : this.getNname().equals(other.getNname()))
            && (this.getNsex() == null ? other.getNsex() == null : this.getNsex().equals(other.getNsex()))
            && (this.getNphone() == null ? other.getNphone() == null : this.getNphone().equals(other.getNphone()))
            && (this.getNidentify() == null ? other.getNidentify() == null : this.getNidentify().equals(other.getNidentify()))
            && (this.getDeid() == null ? other.getDeid() == null : this.getDeid().equals(other.getDeid()))
            && (this.getKid() == null ? other.getKid() == null : this.getKid().equals(other.getKid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getNid() == null) ? 0 : getNid().hashCode());
        result = prime * result + ((getNname() == null) ? 0 : getNname().hashCode());
        result = prime * result + ((getNsex() == null) ? 0 : getNsex().hashCode());
        result = prime * result + ((getNphone() == null) ? 0 : getNphone().hashCode());
        result = prime * result + ((getNidentify() == null) ? 0 : getNidentify().hashCode());
        result = prime * result + ((getDeid() == null) ? 0 : getDeid().hashCode());
        result = prime * result + ((getKid() == null) ? 0 : getKid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", nid=").append(nid);
        sb.append(", nname=").append(nname);
        sb.append(", nsex=").append(nsex);
        sb.append(", nphone=").append(nphone);
        sb.append(", nidentify=").append(nidentify);
        sb.append(", deid=").append(deid);
        sb.append(", kid=").append(kid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}